package com.mesSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.sql.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("employee")
public class Employee {

    public Employee(Long employeeId, String employeeName) {
        this.employeeId = employeeId;
        this.employeeName = employeeName;
    }

    @TableId(value = "employee_id", type = IdType.AUTO)
    /**
     * 员工id
     */
    private Long employeeId;
    /**
     * 员工姓名
     */
    private String employeeName;
    /**
     * 员工性别 0表示女性、1表示男性
     */
    private int sex;
    /**
     * 籍贯
     */
    private String birthplace;
    /**
     * 电话号码
     */
    private String phone;
    /**
     * 状态（在职、请假、离职。。。）
     */
    private String status;
    /**
     * 入职日期
     */
    private Date hireDate;
    /**
     * 部门
     */
    private String department;
    /**
     * 职位
     */
    private String position;
    /**
     * 出生年月日
     */
    private Date birthday;
    /**
     * 登陆密码
     */
    private String password;
    /**
     * 权限码（唯一！）
     */
    private String permissionCode;

}

